package com.xrs.xrseducation.order.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author jobob
 * @since 2020-09-18
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("orderfrom")
public class Order implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 订单主键
     */
    @TableId(value = "oid", type = IdType.AUTO)
    private Integer oid;

    /**
     * 订单编号
     */
    private String serial;

    /**
     *学生外键
     */
    @TableField("stuid")
    private Integer stuId;

    /**
     * 支付方式
     */
    private String payment;

    /**
     * 应缴学费
     */
    private Integer tuition;

    /**
     * 收获地址
     */
    @TableField("stuSite")
    private Integer stuSite;

    /**
     * 开始时间
     */
    @TableField("changeTime")
    private String changeTime;

    /**
     * 结束时间
     */
    @TableField("endTime")
    private String endTime;

    /**
     * 订单状态
     */
    private Integer state;

    public Integer getOid() {
        return oid;
    }

    public void setOid(Integer oid) {
        this.oid = oid;
    }

    public String getSerial() {
        return serial;
    }

    public void setSerial(String serial) {
        this.serial = serial;
    }

    public String getPayment() {
        return payment;
    }

    public void setPayment(String payment) {
        this.payment = payment;
    }

    public Integer getTuition() {
        return tuition;
    }

    public void setTuition(Integer tuition) {
        this.tuition = tuition;
    }

    public Integer getStuSite() {
        return stuSite;
    }

    public void setStuSite(Integer stuSite) {
        this.stuSite = stuSite;
    }

    public String getChangeTime() {
        return changeTime;
    }

    public void setChangeTime(String changeTime) {
        this.changeTime = changeTime;
    }

    public String getEndTime() {
        return endTime;
    }

    public void setEndTime(String endTime) {
        this.endTime = endTime;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public Integer getStuId() {
        return stuId;
    }

    public void setStuId(Integer stuId) {
        this.stuId = stuId;
    }

    @Override
    public String toString() {
        return "Order{" +
                "oid=" + oid +
                ", serial='" + serial + '\'' +
                ", stuId=" + stuId +
                ", payment='" + payment + '\'' +
                ", tuition=" + tuition +
                ", stuSite=" + stuSite +
                ", changeTime='" + changeTime + '\'' +
                ", endTime='" + endTime + '\'' +
                ", state=" + state +
                '}';
    }
}
